home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -in_the_mag- / reader_requests / scilab / man / man-part2 / cat1 / linsolve.1 < prev    next >
Text File  |  1999-09-16  |  941b  |  67 lines

  1.  
  2.  
  3.  
  4. linsolve(1)                    Scilab Function                    linsolve(1)
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. NAME
  12.   linsolve - linear equation solver
  13.  
  14. CALLING SEQUENCE
  15.   [x0,kerA]=linsolve(A,b [,x0])
  16.  
  17. PARAMETERS
  18.   A         : a na x ma real matrix (possibly sparse)
  19.   b         : a na x 1 vector (same row dimension as A)
  20.   x0        : a real vector
  21.   kerA      : a ma x k  real matrix
  22.  
  23. DESCRIPTION
  24.   linsolve  computes all the solutions to  A*x+b=0.
  25.   x0 is a particular solution (if any) and  kerA= nullspace of A. Any
  26.   x=x0+kerA*w with arbitrary w satisfies
  27.    A*x+b=0.
  28.   If compatible x0 is given on entry, x0 is returned. If not a compatible x0,
  29.   if any, is returned.
  30.  
  31. EXAMPLE
  32.   A=rand(5,3)*rand(3,8);
  33.   b=A*ones(8,1);[x,kerA]=linsolve(A,b);A*x+b   //compatible b
  34.   b=ones(5,1);[x,kerA]=linsolve(A,b);A*x+b   //uncompatible b
  35.   A=rand(5,5);[x,kerA]=linsolve(A,b), -inv(A)*b  //x is unique
  36.  
  37. SEE ALSO
  38.   inv, pinv, colcomp, im_inv
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.